package 成绩管理系统;
import javax.swing.*;

public class MainPage extends JFrame {
    private JLabel label;

    public MainPage(String userType) {
        setTitle("学生成绩管理系统 - " + userType);
        setSize(500, 400);
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        setLocationRelativeTo(null);

        label = new JLabel("欢迎进入" + userType + "功能页");
        add(label);

        setVisible(true);
    }
}